package com.example.base.net

/**
 * 常量池  网络路径  参数名
 */
class Cons {
    companion object{
        //网址路径
        const val BASE_URL = "http://10.161.9.80:7456/"//基础路径
        const val LOGIN_URL = "/api/front/login"//用户名密码登录
        const val LOGIN_CODE_URL = "/api/front/login/mobile"//验证码登录
        const val SEND_CODE_URL = "/api/front/sendCode"//发送验证码
        const val USER_URL = "/api/front/user"//用户信息
        const val UPDATE_URL = "/api/front/register/reset"//修改密码
        const val INDEX_URL = "/api/front/index"//首页数据
        const val INDEX_GOODS_URL = "/api/front/index/product/{type}"//首页商品数据
        const val GOODS_URL = "/api/front/products"//商品列表（分类商品、搜索商品、对商品排序）
        const val QUAN_URL = "/api/front/coupons"//优惠券列表
        const val QUAN_RECEIVE_URL = "/api/front/coupon/receive"//优惠券领取
        //地址列表
        const val ADDRESS_URL = "/api/front/address/list"
        //新增地址
        const val ADD_ADDRESS_URL = "/api/front/address/edit"

        const val XQ_URL = "/api/front/product/detail/{id}"//商品详情
        const val ADD_CAR_URL= "/api/front/cart/save"//新增购物车
        const val CAR_URL = "/api/front/cart/list"//购物车列表
        const val UPDATE_CAR_URL = "/api/front/cart/num"//修改购物车数量
        const val DELETE_CAR_URL = "/api/front/cart/delete"//删除购物车

        const val CATEGORY_URL = "/api/front/category"//分类
        const val PREORDER_URL = "/api/front/order/pre/order"//预下单
        const val GETPREORDER_URL = "/api/front/order/load/pre/{preOrderNo}"//获取预下单
        const val CREATEORDER_URL = "/api/front/order/create"//创建订单
        const val PAY_URL = "/api/front/pay/payment"//支付
        const val ORDER_URL = "/api/front/order/list"//订单列表
        const val UPLOAD_URL = "/api/front/user/upload/image"//上传文件

        //SP存储数据名称
        const val SP_TOKEN = "token"
        const val SP_PHONE = "phone"

        //参数的名称
        const val PARAM_TOKEN = "Authori-zation"//请求头的token名称
        const val PARAM_PHONE = "phone"
    }
}